package com.ezjie.ielts.task;

import android.content.Context;

import com.ezjie.ielts.core.http.HttpAPI;
import com.lidroid.xutils.http.callback.RequestCallBack;

/**
 * 
 * 下载听力mp3
 */
public class DownLoadListenTask {

	private Context context;

	public DownLoadListenTask(Context context) {
		this.context = context;
	}

	/**
	 * 缓存mp3
	 * 
	 * @param url
	 * @param sdPath
	 * @param httpRequestCallBack
	 */
	public void downloadListen(String url, String sdPath, RequestCallBack httpRequestCallBack) {
		HttpAPI.getInstance(context).doDownloadRequest(url, sdPath, httpRequestCallBack);
	}

}
